package com.teemor.tim.rest;


import com.teemor.tim.bean.form.CreateGroupForm;
import com.teemor.tim.rest.model.RestParam;
import com.teemor.tim.model.group.GroupAddModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/12/8 17:10
 */
@FeignClient(name = "group", url = "https://console.tim.qq.com/v4/group_open_http_svc/")
public interface GroupFeignClient {

    @PostMapping("group_add")
    GroupAddModel groupAdd(@SpringQueryMap RestParam queryParam,
                           @RequestBody CreateGroupForm form);
}
